package algorithm.poj.p1000;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLDecoder;
import java.util.StringTokenizer;

/**
 * 分析：
 * 
 * 实现：
 * 
 * 经验：
 * 
 * 教训：
 * 
 * @author wong.tong@gmail.com
 *
 */
public class P1663 {

	public static void main(String[] args) throws Exception {

		InputStream input = null;
		if (false) {
			input = System.in;
		} else {
			URL url = P1663.class.getResource("P1663.txt");
			File file = new File(URLDecoder.decode(url.getPath(), "UTF-8"));
			input = new FileInputStream(file);
		}
		
		BufferedReader stdin = new BufferedReader(new InputStreamReader(input));

		StringBuffer sb = new StringBuffer("");
		String line = stdin.readLine();
		Integer N = Integer.valueOf(line);
		for (int i = 0; i < N; i ++) {
			line = stdin.readLine();
			StringTokenizer st = new StringTokenizer(line);
			int x = Integer.valueOf(st.nextToken());
			int y = Integer.valueOf(st.nextToken());
			int d = x-y;
			if (d == 0) {
				if (x%2 == 0 && y >= 0) {
					sb.append(2*x).append("\n");
				} else {
					sb.append(2*x-1).append("\n");
				}
			} else if (d == 2 && y >= 0) {
				if (x%2 == 0) {
					sb.append(2*x-2).append("\n");
				} else {
					sb.append(2*x-3).append("\n");
				}
			} else {
				sb.append("No Number\n");
			}
		}
		System.out.println(sb);
	}
}